package site_announcement

import (
	"context"
	"git.mycaigou.com/gfyx/micro-gfyx-user-service/infrastructure/common/utils"
)

type SiteAnnouncementRepositoryIface interface {
	SaveSiteAnnouncement(ctx context.Context, po *SiteAnnouncementPo) (*SiteAnnouncementPo, error)
	QuerySiteAnnouncementList(ctx context.Context, condition map[string]interface{}, pageInfo *utils.PageInfo, orderBy string) (int64, []*SiteAnnouncementPo, error)
	DeleteSiteAnnouncement(ctx context.Context, id int64, modifiedBy string) error
	GetSiteAnnouncementDetail(ctx context.Context, id int64) (*SiteAnnouncementPo, error)
	IsRepeatTitle(ctx context.Context, title string, id int64) (bool, error)
	SetSiteAnnouncementViewRecord(ctx context.Context, siteAnnouncementId, userId int64, tenantCode string) (int64, error)
	GetUserViewRecord(ctx context.Context, userId int64, tenantCode string) ([]int64, error)
}
